package slw.controls
{
	import flash.events.MouseEvent;
	
	/**
	 * ToggleButton
	 * 开关按钮类，具有选中未选中两种状态，选中时与按下状态相同
	 * @author ddx<br/>
	 * 2011-7-28
	 *
	 */
	public class ToggleButton extends LabelButton
	{
		/**
		 * 构造函数 
		 * @param label:String="Label" 文本值
		 * 
		 */		
		public function ToggleButton(label:String="Label")
		{
			super(label);
			this.listName="ToggleButton";
			
			this.toggle=true;
		}
		
		/*
		-----------------------------------
		setters getters
		-----------------------------------
		*/
		//
		/**
		 * 按钮是否自动切换选中和未选中状态，对于此类值始终为:true 
		 * @param value:Boolean
		 * 
		 */		
		override public function set toggle(value:Boolean):void{
			value=true;
			super.toggle=value;
		}
		/*
		-----------------------------------
		public  methods
		-----------------------------------
		*/
		/*
		-----------------------------------
		private  methods
		-----------------------------------
		*/
	}
}